import {createStore} from "vuex"

const store = createStore({
	store:{
		stuName:'小明'
	},
	mutations:{
		stuName(state,name){
			state.stuName = name
		}
	},
	actions:{
		changeStuName(store,name){
			store.commit('stuName',name);
			console.log('我要改变姓名')
		}
	}
})

export default store